<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            display: flex;
            width: 500px;
            height: 300px;
            background: skyblue;
            /* flex-direction:column; */
            /* flex-direction: row-reverse; */
            flex-wrap:wrap ;
            justify-content: space-between;
        }
        .item:nth-child(1){
            width: 100px;
            order: 3;
            background-color: pink;
            height: 100px;
        }
        .item:nth-child(2){
            width: 100px;
            background-color: pink;
            height: 100px;
            order: 2;
        }
        .item:nth-child(3){
            width: 100px;
            background-color: orange;
            height: 100px;
            order: 1;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="item">1</div>
        <div class="item">2</div>
        <div class="item">3</div>
        
    </div>
    <script>
        // 容器的属性  6个 
        // 1. flex-direction
        // 2. flex-wrap
        // 3. flex-flow  <direction + wrap>
        // 4. justify-content
        // 5. align-items
        // 6. align-content  多轴线

        // 项目的属性 
        // 1. order 属性定义项目的排列顺序。数值越小，排列越靠前，默认为0。
        // 2. flex-grow 属性定义项目的放大比例，默认为0
        // 3. flex-shrink 定义项目的缩小比例， 默认为1；
        // 4. flex-basis 项目在主轴上的初始大小，默认为auto；
        // 5. flex   ==>   flex-grow; flex-shrink; flex-basis;  0 1 auto
        // 6. align-self属性允许单个项目有与其他项目不一样的对齐方式

    </script>
</body>
</html>